package cn.zpfhomework05;

public class E {
    public static void main(String[] args) {
        Aodi ad = new Aodi();

        ad.setBrand("奥迪");
        ad.setModel("奥迪A8");
        ad.setPrice("1000000.0万");
        System.out.println("汽车品牌是：" + ad.getBrand() + "型号是：" + ad.getModel() + "价格是：" + ad.getPrice());
        System.out.println(ad.drive());
        ad.changespeed(45);

        Benchi bc = new Benchi();
        bc.setBrand("奔驰");
        bc.setModel("奔驰SL600");
        bc.setPrice("500000.0万");
        System.out.println("汽车品牌是：" + bc.getBrand() + "型号是：" + bc.getModel() + "价格是：" + bc.getPrice());
        System.out.println(bc.drive());
        bc.changespeed(60);
    }
}
